package main

import (
	"fmt"
	"strconv"
)

func main() {
	var str string
	str = "hello world! 猪猪"
	fmt.Println(str)
	v := []byte{'z','h','o','u'}
	s := string(v)
	fmt.Println(v)
	fmt.Println(s)
	// strconv 常用字符串转换
	v1 := "25"
	s1, err := strconv.Atoi(v1)
	if err != nil {
		panic(err)
	}
	fmt.Printf("类型：%T, 值：%d \n", s1, s1)
	v2 := 25
	s2 := strconv.Itoa(v2)
	fmt.Printf("类型：%T, 值：%s \n", s2, s2)




}
